<template>
  <!--项目新增修改-->
  <div>
    <el-row>
      <el-col :span="22" :offset="1">
        <el-card class="box-card" style="padding: 0 15px;">
          <el-form :label-position="labelPosition" :inline="true" :model="form">
            <el-form-item style="width: 100%">
              <el-divider direction="vertical" style="size:20px"></el-divider>
              <span style="color:blue;font-size: 25px;float: left">新增员工信息</span>
              <el-button type="primary" style="float: right;" @click="back">返回
              </el-button>
              <el-button type="primary" @click="onSubmit" style="float: right;margin-right: 10px">保存</el-button>
            </el-form-item>

            <el-form-item style="width: 20%" align="left" label="患者姓名">
              <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="患者卡号">
              <el-input v-model="form.cardnum"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="患者年龄">
              <el-input v-model="form.age"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="出生日期">
              <el-input v-model="form.birth"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="性别">
              <el-input v-model="form.sex"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%  " align="left" label="手机号码">
              <el-input v-model="form.phone"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="证件号码">
              <el-input v-model="form.identity"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="患者来源">
              <el-input v-model="form.source"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="名族">
              <el-input v-model="form.nation"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="婚姻状态">
              <el-input v-model="form.ismarry"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="学历">
              <el-input v-model="form.education"></el-input>
            </el-form-item>
            <el-form-item style="width:20%" align="left" label="地址">
              <el-input v-model="form.address"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="职业">
              <el-input v-model="form.profession"></el-input>
            </el-form-item>
            <el-form-item style="width: 20%" align="left" label="工作单位">
              <el-input v-model="form.workunit"></el-input>
            </el-form-item>
            <el-form-item style="width:20%" align="left" label="备注">
              <el-input v-model="form.note"></el-input>
            </el-form-item>

          </el-form>
        </el-card>

      </el-col>

    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        labelPosition: 'top',
        form: {
          id: '',
          name: '',
          price: '',
          price1: '',
          danwei: '',
          fenlei: '',
          leixing: '',
          date1: '',
          x: ""

        }
      };
    },
    methods: {
      onSubmit() {
        alert("保存成功")
        console.log('submit!');
      },
      back:function () {
        this.$router.push("/patient")
      }
    }
  }
</script>

<style scoped>

</style>
